package com.korubo.web.contrller;

import com.korubo.kit.R;
import com.korubo.web.service.CarouselService;
import com.korubo.web.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/public")
public class PublicContrller {
    @Resource
    private CarouselService carouselService;
    @Resource
    private OrderService orderService;
    @RequestMapping("/list")
    public R list() {
        return carouselService.findByStatus();
    }
    @RequestMapping("/orders")
    public R orders() {
        return orderService.orders();
    }
}
